package com.example.springboothello.listener;

import com.example.springboothello.entity.Order;
import org.springframework.context.ApplicationEvent;

public class OrderEvent extends ApplicationEvent {
    private Order order ;
    public OrderEvent(Object source, Order order) {
        super(source) ;
        this.order = order ;
    }
    public Order getOrder() {
        return this.order;
    }
}
